package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MessageReplyRule;
import com.rockcent.mall.lib.domain.enumclass.WechatMessageCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by marco on 2017/5/25.
 */
@Repository
public interface MallWechatMessageReplyRuleRepository extends JpaRepository<MessageReplyRule,Long>, JpaSpecificationExecutor,MallWechatMessageReplyRuleRepositoryCustom {

    MessageReplyRule findByIdAndMallId(Long id, Long mallId);

    List<MessageReplyRule> findByMallId(Long mallId);
}
